package com.lanxiao.cloud.modules.gateway.route.application.dto;

import com.lanxiao.cloud.common.core.dto.BaseDto;
import com.lanxiao.cloud.common.core.dto.UserBaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;

/**
 * @author ：qiaoliang
 * @date ：2021-09-09
 */
@ApiModel("网关路由返回模型")
public class GatewayRoutePageDto extends BaseDto<Long> {
  @ApiModelProperty(value = "服务唯一ID")
  private final String serviceId;
  @ApiModelProperty(value = "转发地址")
  private final String uri;
  @ApiModelProperty(value = "访问路径")
  private final String predicates;
  @ApiModelProperty(value = "过滤")
  private final String filters;
  @ApiModelProperty(value = "顺序")
  private final int sort;

  public GatewayRoutePageDto(Long id, Date createTime, Date updateTime,
      String remark, String serviceId, String uri, String predicates, String filters, int sort) {
    super(id, createTime, updateTime, remark);
    this.serviceId = serviceId;
    this.uri = uri;
    this.predicates = predicates;
    this.filters = filters;
    this.sort = sort;
  }

  public String getServiceId() {
    return serviceId;
  }

  public String getUri() {
    return uri;
  }

  public String getPredicates() {
    return predicates;
  }

  public String getFilters() {
    return filters;
  }

  public int getSort() {
    return sort;
  }

}
